package com.example.shop_2207.adapter

import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder
import com.example.shop_2207.R
import com.example.shop_2207.entity.CarEntity

class OrderAdapter(list: MutableList<CarEntity>):BaseQuickAdapter<CarEntity,BaseViewHolder>(R.layout.item_order,list) {
    override fun convert(holder: BaseViewHolder, item: CarEntity) {
        holder.setText(R.id.tv_desc,item.goods_desc)
        holder.setText(R.id.tv_count,"X ${item.count}")
        holder.setText(R.id.tv_prices,"${item.goods_default_price*item.count}元")
    }
}